package com.zy.cat.entity.mall.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 商品类目实体类
 * 
 * @author Link
 * @date 2019-02-26 10:03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("商品类目实体类")
public class CatGoodsCategoryResp implements Serializable {
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 8111581601212481558L;

	@Id
	@ApiModelProperty(value = "商品类目ID", example = "20101906")
	private int id;
	
	@ApiModelProperty(value = "商品类目名称", example = "大额券")
	private String name;
	
	@ApiModelProperty(value = "商品类目图标", example = "http://")
	private String itemUrl;
	
	@ApiModelProperty(value = "物料id", example = "13256")
	private Integer materialId;
	
	@ApiModelProperty(value = "商品类目父类ID", example = "20101906")
	private int parentId;
	
	@ApiModelProperty(value = "商品类目级别(1.一级类目、2.二级类目)", example = "1")
	private int level;
	
	@ApiModelProperty(value = "类目类型(0.淘宝、1.拼多多、2.京东)", example = "0")
	private int ltype;
	
	@JsonIgnore
	@ApiModelProperty(value = "分类排序", example = "2")
	private int sort;
	
	@ApiModelProperty(value = "子类目", example = "")
	private List<CatGoodsCategoryResp> childrenList;
}